package tetris.features;
import java.util.*;

import tetris.simulator.State;

public class ConcatenateFeature extends Feature {
  
  protected ArrayList<Feature> featureList;
  
  public ConcatenateFeature(ArrayList<Feature> featureList) {
    this.featureList = featureList;
  }
  
  public ArrayList<Double> getFeatureVector(State tetrisState) {
    ArrayList<Double> featureVector = new ArrayList<Double>();
    for (Feature f : featureList) 
      featureVector.addAll(f.getFeatureVector(tetrisState));
    return featureVector;
  }
}
